## Process this file with automake to produce Makefile.in.
##
## 

# -- Subdirectories
if BUILD_VASIC
#SUBDIRS = libs/sqlite libs/yajl/src libs/jsonrpc/src libs/libev-3.9 .

# Redefine the bin installation directory
#bindir = $(prefix)/bin/statdb

# -- Real Programs
#bin_PROGRAMS	 = 

# -- No-install Libtool Libraries
lib_LTLIBRARIES	 = libstatdb.la
#noinstlib_LTLIBRARIES	 = libstatdb.la
#noinstlibdir = .lib 
# -- Libraries and library flags to link the binary programs

# -- Program Sources
libstatdb_la_SOURCES = pica_statdb.cc
libstatdb_la_SOURCES += pica_jsonrpc.cc
libstatdb_la_SOURCES += pica_jsonrpc.hh
libstatdb_la_SOURCES += ./platforms/pica_statdb_tb_impl.cc
libstatdb_la_SOURCES += ./platforms/pica_api/lcmgr_offlow_table.cc
libstatdb_la_SOURCES += ./platforms/pica_api/pica_counter_api.cc

#pica_lcmgr_CPPFLAGS 	  = $(AC_CPPFLAGS)
#pica_lcmgr_LDFLAGS		= -lpthread


#libstatdb_la_CPPFLAGS 	  = ${AC_CPPFLAGS}

SQLITE_DIR=$(top_srcdir)/lcmgr/sqlite
YAJL_DIR=$(top_srcdir)/lcmgr/yajl/src
LIBEV_DIR=$(top_srcdir)/lcmgr/libev-3.9
LIBJSONRPC_DIR=$(top_srcdir)/lcmgr/jsonrpc/src


libstatdb_la_LIBADD  = $(SQLITE_DIR)/libsqlite3.la
libstatdb_la_LIBADD += $(YAJL_DIR)/libyajl.la
libstatdb_la_LIBADD += $(LIBEV_DIR)/libev.la
libstatdb_la_LIBADD += $(LIBJSONRPC_DIR)/libjsonrpc.la


if BUILD_LIONRD_48XG
INCLUDES = -I@LC_PORT_MAP_PATH@ -I@LC_PORT_MAP_PATH@/../common \
           -I@LC_PORT_MAP_PATH@/.. -I@PICA_COMMON_PLATFORM_PATH@ \
           -I@SDK_ROOT_PATH@/cpss/mainPpDrv/h -I@SDK_ROOT_PATH@/cpss/common/h \
           -I@SDK_ROOT_PATH@/cpss/cpssEnabler/mainExtDrv/h \
           -I@SDK_ROOT_PATH@/cpss/cpssEnabler/mainOs/h \
		   -I$(top_srcdir)/lcmgr \
		   -Iinclude \
		   -I$(SQLITE_DIR) \
		   -I$(YAJL_DIR) \
		   -I$(LIBEV_DIR) \
		   -I$(LIBJSONRPC_DIR)

else
INCLUDES = -I$(top_srcdir)/include -I@SDK_ROOT_PATH@/include \
           -I@SDK_ROOT_PATH@/systems/bde/linux/include -I/@LC_PORT_MAP_PATH@ \
           -I@LC_PORT_MAP_PATH@/../common -I@PICA_COMMON_PLATFORM_PATH@ \
		   -I$(top_srcdir)/lcmgr \
		   -Iinclude \
		   -I$(SQLITE_DIR) \
		   -I$(YAJL_DIR) \
		   -I$(LIBEV_DIR) \
		   -I$(LIBJSONRPC_DIR)
endif

endif #BUILD_VASIC
